<%@ page pageEncoding="utf-8"%>
<script type="text/javascript">
	function empSch() {
		var empList = $("#empList");
		var queryParams=empList.datagrid('options').queryParams;
	   	queryParams.name=$("#nameSch").textbox('getValue');
	   	resetDG(empList);
	}
</script>
 <script type="text/javascript" src="${ctx}/js/extendDataGrid.js"></script>

<table id="empList" class="easyui-datagrid" data-options="fit:true,
		                                                        rownumbers:true,
																striped:true,
																singleSelect:true,
																fitColumns:true,
																toolbar:'#tbEmp',
																pagination:true,
																pageSize:10,
																idField:'id',
																border:false,
																pageList:[10,30,50,100],
																url:'${ctx}/emp/chooseEmp.action'
																">
	<div id="tbEmp">
		员工姓名：<input class="easyui-textbox" id="nameSch" style="width:200px;">&nbsp;&nbsp;
		<a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-search',plain:true" onclick="empSch()">搜索</a>
	</div> 
			<thead>
				<tr>
					<th data-options="field:'ck',checkbox:true,halign:'center'"></th>
					<th data-options="field:'user.empId',align:'left',halign:'center'" width="30%"><strong>工号</strong></th>				
					<th data-options="field:'user.name',align:'left',halign:'center'" width="30%"><strong>姓名</strong></th>				
					<th data-options="field:'user.deptName',align:'left',halign:'center'" width="30%"><strong>部门</strong></th>				
					<th data-options="field:'id',align:'left',hidden:true,halign:'center'"><strong>id</strong></th>				
				</tr>
			</thead>
		</table>
